import axios from '@/utils/request';
const baseOriginURL = process.env.VUE_APP_BASE_ORIGIN + '/iot_login';

// 登录
const login = data => {
  return axios.post(baseOriginURL + '/user/login', data);
};

// 获取验证码
const getMsgCode = params => {
  return axios.get(baseOriginURL + '/user/getSmsCode', {
    params
  });
};

export { login, getMsgCode };
